<%= error_messages_for :user %>
<% form_for(@user, :url => {:action => :update, :id => @user.id}) do |f| -%>
<p><label for="login">Login</label><br/>
<% #= f.text_field :login %>
<%= @user.login %></p>

<p><label for="email">Email</label><br/>
<%= f.text_field :email %></p>

<p><label for="old_password">Current Password</label><br/>
<%= password_field_tag :old_password, '', :size => 30 %></p>

<p><label for="password">Password *</label><br/>
<%= f.password_field :password %></p>

<p><label for="password_confirmation">Confirm Password *</label><br/>
<%= f.password_field :password_confirmation %></p>

<% Source.find(:all).each do |s| %>
  <p>

  <br/>
    <%= text_field_tag( "source_user[#{s.name}]", params[:source_user][s.name], :size => 30) %>
    <%= label(s.name.to_sym, :user, "#{s.name} User") %><br/>
    <%= text_field_tag( "source_pass[#{s.name}]", params[:source_pass][s.name], :size => 30) %>
    <%= label(s.name.to_sym, :pass, "#{s.name} Password") %></p>
<% end %>

<p><%= submit_tag 'Update', :id => @user.id %></p>
<p>* leave password fields blank if you don't want to change your password</p>
<% end -%>

